//-----------------------------------------------------------------------------
// File: WorksheetChart.cs
//
// Copyright (c) Dmitry Shuklin. All rights reserved.
//-----------------------------------------------------------------------------
using System;
using System.Drawing;
using System.Windows.Forms;
using Microsoft.DirectX;
using Microsoft.DirectX.Direct3D;

namespace ObjectiveDraw.Platform
{
	/// <summary>
	/// Summary description for WorksheetChart.
	/// </summary>
	public class WorksheetChart : DrawerChartBase
	{
		public const string SystemComponentId = "ObjectiveDraw.WorksheetChart";


		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(WorksheetChart));
			// 
			// imgScaleUp
			// 
			this.imgScaleUp.NormalLeaveImage = ((System.Drawing.Image)(resources.GetObject("imgScaleUp.NormalLeaveImage")));
			// 
			// imgScaleDown
			// 
			this.imgScaleDown.NormalLeaveImage = ((System.Drawing.Image)(resources.GetObject("imgScaleDown.NormalLeaveImage")));
			// 
			// imgScaleAuto
			// 
			this.imgScaleAuto.NormalLeaveImage = ((System.Drawing.Image)(resources.GetObject("imgScaleAuto.NormalLeaveImage")));
			// 
			// pnlHeader
			// 
			this.pnlHeader.Interval = 3;


		}
	
		public WorksheetChart()
		{
			//
			// TODO: Add constructor logic here
			//
			InitializeComponent();

		}

		private bool uninitialized = true;
		protected override void OnInitializeDeviceObjects(Cerebrum.Direct3D.Forms.DeviceEventArgs e)
		{
			base.OnInitializeDeviceObjects (e);

			if(uninitialized)
			{
				uninitialized = false;
				ObjectiveDraw.Platform.Application _app = this.DrawerDocument.DrawerApplication;
				//ToolBarDrawHelper.InitImageButton(btnAddSignal, _app, btnAddSignal.NormalLeaveImage, btnAddSignal.NormalEnterImage, false);
			}
		}


		protected override void OnHeaderButtonCheckedChanged(object sender, EventArgs e)
		{
#warning "base deprecated"
			//base.OnHeaderButtonCheckedChanged (sender, e);
		}

	}
}
